<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <TITLE>ThinkPHP示例：URL伪装</TITLE>
<link rel='stylesheet' type='text/css' href='__PUBLIC__/Css/common.css'>
 </HEAD>
 <BODY>
 <div class="main">
 <H2>ThinkPHP示例之：URL伪装</H2>
  可以通过配置来实现URL的模块和操作的伪装<BR>
 <TABLE  cellpadding=3 cellspacing=3>
  <TR>
	<TD ><div class="result">当前URL：<BR>{$Think.server.PHP_SELF} </div></TD>
 </TR>
 <TR>
	<TD class="tLeft" >
	下面这些URL都指向 <span style="color:red;font-weight:bold">Index</span>模块 的<span style="color:red;font-weight:bold">read</span> 操作<BR>
	正常URL：<A HREF="__URL__/read/id/5">/Index/read/id/5</A><BR>
	模块伪装：<A HREF="__APP__/Hello/read/id/5">/Hello/read/id/5</A><BR>
	操作伪装：<A HREF="__APP__/Index/a/id/5">/Index/a/id/5</A><BR>
	模块和操作同时伪装：<A HREF="__APP__/Haha/a/id/5">/Haha/a/id/5</A><BR>
	</TD>
 </TR>
 <TR>
	<TD ><HR> 示例源码<BR>配置文件config.php<BR> <php>highlight_file(CONFIG_PATH.'config.php');</php><BR>
	控制器IndexAction类<BR><php>highlight_file(LIB_PATH.'Action/IndexAction.class.php');</php><BR>
	</TD>
 </TR>
 </TABLE>
</div>
 </BODY>
</HTML>
